from typing import List, Dict, Any
from process import baseFunction as bf


def Basic_mv_count() -> List[any]:
    # 定义表的字段名列表
    field_names = ["trade_date", "total_stocks", "mv_5y", "mv_5y_30y", "mv_30y_1by", "mv_1by_5by", "mv_5by_1ky",
                   "mv_1ky_5ky", "mv_5ky_1wy", "mv_1wy_2wy", "mv_above2wy"]
    table_name = 'daily_basic_mv_count'
    orderBy = 'trade_date'
    query_txt = bf.generate_query(table_name=table_name,
                                  field_names=field_names,
                                  order_by=orderBy)
    result_data = bf.execute_query(query_txt)
    return result_data


def Daily_basic_mv_count() -> List[any]:
    basic_mv_count_list = Basic_mv_count()
    record = basic_mv_count_list[0]
